package com.jxin.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * http 返回实例
 * @author  Jxin
 * @version 1.0
 * @since 2020/1/13 20:01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("http返回实例")
public class HttpRsp<T> implements Serializable {
    private static final long serialVersionUID = -736705516074180778L;
    /**编码*/
    @ApiModelProperty(value = "编码", required=true)
    private Integer code;
    /**消息*/
    @ApiModelProperty(value = "消息")
    private String msg;
    /**数据*/
    @ApiModelProperty(value = "数据")
    private T data;
}
